<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$tValidation = new InputValidation();

$mSubmenuSelect = ($_POST[submenu]? $_POST[submenu] : $_GET[submenu]);
$tValidation->SetInput($mSubmenuSelect);
$tValidation->SetPattern(pUnsignedInt);
$mSubmenuSelect = $tValidation->CheckValidation();

switch ($mSubmenuSelect) {
    //KEPEGAWAIAN DATA
    case 311 : $tPage= 'view/kepegawaian/pegawai/daftar-pegawai.php';
        break;
    
    case 312 : $tPage= 'view/kepegawaian/pegawai/form-pegawai.php';
        break;
    case 319 : $tPage= 'view/kepegawaian/pegawai/exec/exec-pegawai.php';
        break;
    
    case 411 : $tPage= 'view/kemahasiswaan/mahasiswa/daftar-mahasiswa.php';
        break;
    
    case 412 : $tPage= 'view/kemahasiswaan/mahasiswa/form-mahasiswa.php';
        break;

    default: include($default);
        break;
}

//SET PAGE
$myApp->SetPage(APP_LOADER_PATH . 'hrs/' . $tPage);
?>
